/**
 * 
 */
package net.dfrz.iodemo.filework;

import java.io.File;
import java.util.Date;

/**
 * @author ctd
 *
 */
public class Tester {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		File file=new File("C:/oracle"); //C:\\oracle
		System.out.println(file.isFile());
		System.out.println(file.isDirectory());
		
		
		File file1=new File("C:/tomcat/apache-tomcat-6.0.24");
		File[] files=file1.listFiles();
		
		for(File f:files)
		  System.out.println(f.getAbsolutePath()+"\t"+new Date(f.lastModified()));


	}

}
